/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package shaman.storage;

import java.util.Map;
import java.util.TreeMap;
import shaman.storage.api.Storage;

/**
 *
 * @author Shaman
 */
public class StorageList {
    
    private static Map<String, Factory<? extends Storage>> factoryMap = new TreeMap();

    public static void addFactory(Factory<? extends Storage> newFactory)
    {
        factoryMap.put(newFactory.getTypeName(), newFactory);
    }

    //Static constructor
    static {}

    public static Map<String, Factory<? extends Storage>> getFactoryMap()
    {
        return factoryMap;
    }

}
